<!--
 * @Author: liwei 474083297@qq.com
 * @Date: 2024-05-10 21:09:30
 * @LastEditors: liwei 474083297@qq.com
 * @LastEditTime: 2024-05-10 21:42:56
 * @FilePath: /app/src/components/authTree.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
	<div class="auth-tree">
		<el-tree
			:data="data"
			show-checkbox
			node-key="id"
			ref="authTree"
			highlight-current
			:props="defaultProps"
		>
		</el-tree>
	</div>
</template>

<script>
export default {
	name: 'AppAuthTree',

	data() {
		return {
			data: [],
			defaultProps: {
				children: 'children',
				label: 'name'
			}
		};
	},

	mounted() {},
	created() {
		this.data = this.$appData.treeData;
		// let orgList = JSON.parse(localStorage.getItem('orgList'));
		// this.data = [...orgList];
	},

	methods: {}
};
</script>

<style lang="scss" scoped>
.auth-tree {
	width: 500px;
	height: 100%;
	overflow: scroll;
	background-color: rgb(235, 228, 217);
}
</style>
